﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>$Category.CategoryName - $Blog.Name</title>
    <link href="/themes/default/css/style.css" rel="stylesheet" />
</head>
<body>
    $load("header.html")

    <div class="containet">
        <div class="post-list">
            <ul>
                $set(page=Sys.GetPostList(Category.Slug))
                $foreach(row in page.DataSource)
                <li>
                    <div class="title"><a href="$Sys.GetUrl(row)">$row.Title</a></div>
                    <div class="summary">$row.Description</div>
                    <div class="meta">
                        <span><i class="icon icon-author"></i> $row.Author</span>
                        <span><i class="icon icon-time"></i> $row.DateCreated.ToString("yyyy-MM-dd")</span>
                    </div>
                </li>
                $end
            </ul>
            <div class="pager">
                $page.ToPageString()
            </div>
        </div>
        <div class="sidebar">
            $load("sidebar.html")
        </div>
    </div>

    $load("footer.html")
</body>
</html>
